package com.distribute.common.enums;

/**
 * Created by Administrator on 2018/8/24.
 */
public enum ErrorCode {

	SUCCESS("000000", "操作成功"),
	FAILED("999999","操作失败"),
	ParamError("000001", "参数错误！"),

	LOW_STOCKS("000010", "库存不足！"),

	SYS_EXCEPTION("000999","系统异常！"),

	LoginNameOrPassWordError("000100", "用户名或者密码错误！"),
	EmailUsed("000101","该邮箱已被注册"),
	UserNameUsed("000102","该登录名称已存在"),
	EmailNotRegister("000103","该邮箱地址未注册"),
	LinkOutdated("000104","该链接已过期，请重新请求"),
	PassWordError("000105","密码输入错误"),
	UserNameLengthLimit("000106","用户名长度超限"),
	LoginNameNotExists("000107","该用户未注册"),
	UserNameSame("000108","新用户名与原用户名一致"),

	FileEmpty("000400","上传文件为空"),
	LimitPictureSize("000401","图片大小必须小于2M"),
	LimitPictureType("000402","图片格式必须为'jpg'、'png'、'jpge'、'gif'、'bmp'");



	private ErrorCode(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	private String code;
	private String msg;

	public String getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}

}
